<ul id="menu" class="list-group">
    <li class="list-group-item">
        <a href="#" data-toggle="collapse" data-target="#news_detail">
            <span>日报管理</span>
        </a>
        <ul class="in" id="news_detail">
            <li class="news"><a href="/news/list.do">待审核日报管理</a></li>
            <li class="newsRelease"><a href="/newsRelease/list.do">已发布日报管理</a></li>
            <li class="newsHot"><a href="/newsHot/list.do">推荐日报管理</a></li>
        </ul>
    </li>
    <li class="list-group-item">
        <a href="#" data-toggle="collapse" data-target="#strategy_detail">
            <span>攻略管理</span>
        </a>
        <ul class="in" id="strategy_detail">
            <li class="strategy"><a href="/strategy/list.do">大攻略管理</a></li>
            <li class="strategyCatalog"><a href="/strategyCatalog/list.do">攻略分类管理</a></li>
            <li class="strategyDetail"><a href="/strategyDetail/list.do">攻略文章管理</a></li>
            <li class="loop"><a href="/loop/list.do">大家都在看</a></li>
        </ul>
    </li>
    <li class="list-group-item">
        <a href="#" data-toggle="collapse" data-target="#travel_detail">
            <span>游记管理</span>
        </a>
        <ul class="in" id="travel_detail">
            <li class="travelAudit"><a href="/travelAudit/list.do">待审核游记</a></li>
            <li class="travelRelease"><a href="/travelRelease/list.do">已发布游记管理</a></li>
            <li class="travelCommend"><a href="/travelCommend/list.do">游记推荐设置</a></li>
        </ul>
    </li>
    <li class="list-group-item">
        <a href="#" data-toggle="collapse" data-target="#travel_detail">
            <span>保险管理</span>
        </a>
        <ul class="in" id="travel_detail">
            <li class="insurance"><a href="/insurance/list.do">保险管理</a></li>
        </ul>
    </li>
	<li class="list-group-item">
		<a href="#" data-toggle="collapse" data-target="#user_detail">
			<span>平台管理</span>
		</a>
		<ul class="in" id="user_detail">
			<li class="user"><a href="/user/list.do">注册用户管理</a></li>
			<li class="region"><a href="/region/list.do">旅游地区管理</a></li>
		</ul>
	</li>
</ul>


<script type="text/javascript">
	var url = location.pathname;
	url = url.substring(1);
    var indexE = url.indexOf("/");
    var currentMenu = url.substring(0, indexE);

    $(".in li."+currentMenu).addClass("active");
</script>
